<?php
class modProductsTypesHelper
{
	static function getList(&$params)
	{
		$list		= array();
		$db = JFactory::getDbo();
		$sql="select id, name, `desc` from yyi_products_types where is_on=1 order by ordering asc";
		$db->setQuery($sql,0,6);//取6个记录
		return $db->loadRowList() ;
	}
}
?>